package com.limh.jkzs.adapter

import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter

import com.limh.jkzs.base.BaseFragment

/**
 * Function:
 * author: limh
 * time:2018/1/17
 */

class FragmentAdapter(fm: FragmentManager, private val fragments: MutableList<BaseFragment>) : FragmentPagerAdapter(fm) {

    override fun getItem(position: Int): Fragment {
        return fragments[position]
    }

    override fun getCount(): Int {
        return fragments.size
    }
}
